package cn.lcfms.app.admin.service.Dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface CommonDao {	
	@Select("select id,name,parent_id,sort,deep,region from areas where id=#{id}")
	public HashMap<String, Object> selectAddressById(int id);
	
	@Select("select `mid`,`type`,`value` from message where type='username' or type='password'")
	public List<HashMap<String, Object>> selectMessageBase();
	
	public List<HashMap<String, Object>> selectArticleList(@Param("where")String where,@Param("begin")int begin,@Param("rows")int rows);
}
